package com.oig.base.api.factory;

import com.oig.base.api.CountryGroupService;
import com.oig.base.api.fallback.CountryGroupServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class CountryGroupServiceFallBackFactory implements FallbackFactory<CountryGroupService> {

    @Override
    public CountryGroupService create(Throwable cause) {
        CountryGroupServiceFallBackImpl countryGroupServiceFallBack = new CountryGroupServiceFallBackImpl();
        countryGroupServiceFallBack.setCause(cause);
        return countryGroupServiceFallBack;
    }

}
